<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import = "com.logistics.entity.InOutStoreRoom" %>
<%@ page import = "com.logistics.entity.DispatchesEle_wqm" %>
<%@ page import = "com.logistics.database.StoreRoomdatabase" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'PurchaseSJsp.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->


  </head>
  
  <body>
  <form action="servlet/ProductServlet" name="act" method="post">
  <center>
  	<c:out value="${'调拨出库列表' }"></c:out><br>
  	<br>
  	<input type="hidden" name="act" value="chuku">
  	<input type="hidden" name="start_time" value="<%=request.getParameter("start_time") %>">
  	<input type="hidden" name="end_time" value="<%=request.getParameter("end_time") %>">
  	<input type="hidden" name="putin" value="<%=request.getParameter("putin") %>">
  	<input type="hidden" name="storeroom_id" value="6">
  	
		  <table border="1" bordercolor="blue" width="100%">
		  
		  	<tr><td><c:out value="${'调拨单号 '}"></c:out></td>
		  	<td><c:out value="${'商品代号'}"></c:out></td>
		  	<td><c:out value="${'商品名称'}"></c:out></td>
		  	<td><c:out value="${'计量单位'}"></c:out></td>
		  	<td><c:out value="${'出库数量'}"></c:out></td>
		  	<td><c:out value="${'任务号 '}"></c:out></td>
		  	<td><c:out value="${'日期'}"></c:out></td>
		  	<td><c:out value="${'修改出库数量'}"></c:out></td>
		  	<c:forEach items="${dispa }" var="mt">
		  		<tr><td>${mt.dispatch_id }</td>
		  		<td>${mt.product_id }</td>
			  	<td>${mt.product_name==null?"&nbsp":mt.product_name }</td>
			  	<td>${mt.unit==null?"&nbsp":mt.unit }</td>
			  	<td>${mt.dispatch_number==null?"&nbsp":mt.dispatch_number }</td>
			  	<td>${mt.order_id==null?"&nbsp":mt.order_id }</td>
			  	<td>${mt.deadline==null?"&nbsp":mt.deadline }</td>
			  	<td><input type="button" value="输入出库数量" onclick="window.location.href='../Logistics/dispatches_wqm/DispatchJspChange2.jsp?start_time=<%=request.getParameter("start_time") %>&end_time=<%=request.getParameter("end_time") %>&putin=<%=request.getParameter("putin") %>&dispatch_id=${mt.dispatch_id }&storeroom_id=${mt.storerooom_id }&product_id=${mt.product_id }&product_name=${mt.product_name}&order_id=${mt.order_id }'" ></td>
			    </tr>
		  	</c:forEach>
		  	</tr>
		  </table>
		  <br>
		  <table>
		  <tr><td><input type="button" name="sure" value="确定" onclick="window.location.href='../Logistics/inoutstore/PurchaseStorage3.jsp'" style="width: 101px; "></td>
		  <td><input type="submit" name="tablename" value="打印出库表" style="width: 101px; "></td>
		  <td><input type="button" value="打印分发表" onclick="window.location.href='../Logistics/dispatches_wqm/DistributionJsp.jsp'" style="width: 101px; "></td> 
		  </table>
		  </center>
		  </form>
  </body>
</html>
